package com.mud.mudcommune.view.fragment.twoLevel;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.mud.mudcommune.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * A simple {@link Fragment} subclass.
 */
public class FreeFragment extends Fragment {
    public static Fragment fragment = new FreeFragment();
    @BindView(R.id.case_back)
    ImageView back;
    @BindView(R.id.head_title)
    TextView title;
    private Unbinder unbinder;

    public static Fragment getInstance() {
        return fragment;
    }

    public FreeFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.freequote, container, false);
        unbinder = ButterKnife.bind(this, view);
        title.setText("免费量房报价");
        return view;
    }

    @OnClick({R.id.case_back})
    public void OnClick(View view) {
        switch (view.getId()) {
            case R.id.case_back:
                getFragmentManager().popBackStack();
                break;
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        unbinder.unbind();
    }
}
